﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using ProcessRoll.Utilities;

namespace ProcessRoll.Models
{
    public class Employee:EntityBase
    {
        [Display(Name="员工姓名"),MaxLength(50)]
        public string FullName { get; set; }

        [Display(Name = "性别"), MaxLength(10)]
        public string Gender { get; set; }

        [Display(Name = "联系方式"), MaxLength(50)]
        public string Contact { get; set; }

        [Display(Name = "上级"), MaxLength(50)]
        public Employee Manager  { get; set; }

        [Display(Name = "职位"), MaxLength(50)]
        public virtual Role Role { get; set; }
        public int? RoleID { get; set; }

        [Display(Name = "所属部门"), MaxLength(50)]
        public virtual Department Department { get; set; }
        public int? DepartmentID { get; set; }

    }
}